dojo.declare("MCustomerAccountPg", wm.Page, {
    start: function() {


        var mainPage = wm.Page.getPage("MobileMainPg");

        this.lvCustomerDisplay.filter.setValue("customerId", mainPage.vUserId);

        this.lvCustomerDisplay.update();

        // this.projectLookup1.setReadonly(true);
        //this.emailEditor.setReadonly(true);
    },
    "preferredDevice": "phone",


    ncDeactivateAccountCancel: function(inSender) {
        this.activeEditor1.setChecked(true);
    },

    blockLookup2Change: function(inSender, inDisplayValue, inDataValue, inSetByCode) {
        this.doorLookup1.setOptions(inDataValue.dataValue);
    },
    lvCustomerDisplaySuccess: function(inSender, inDeprecated) {
        if (this.lvCustomerDisplay.getCount() > 0) {

            var customer = this.lvCustomerDisplay.getItem(0);
            this.blockLookup2.setDisplayValue(customer.data.block.data.blockName);
            this.doorLookup1.setDisplayValue(customer.data.door.data.doorName);

        }
    },
    activeEditor1Change: function(inSender, inDisplayValue, inDataValue, inSetByCode) {
        if (!inDisplayValue) {
            this.ncDeactivateAccount.update();
        }
    },
    _end: 0
});